package com.zengyan.gd.service;

import com.zengyan.gd.form.UserLoginForm;
import com.zengyan.gd.model.Event;
import com.zengyan.gd.model.Organization;
import com.zengyan.gd.model.SignUp;
import com.zengyan.gd.model.User;
import com.zengyan.gd.model.resultModel.EventResultModel;
import com.zengyan.gd.utils.ImageType;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService {


    User login(UserLoginForm loginForm) throws Exception;

    List<Organization> getAllOrg_I_Join(String stuNum) throws Exception;

    User updateImage(String stuNum, MultipartFile file, ImageType type) throws  Exception;

    User getUser(String stuNum) throws Exception;

    List<User> searchPeople(String stunum, String message) throws Exception;

    SignUp signUpInEvent(SignUp signUp) throws  Exception;

    List<Event> getEventIjoin(String stunum);

    /**
     * @return 获取活动的feed
     * @throws Exception
     * @param stunum
     */
    List<EventResultModel> getAllEvent(String stunum) throws Exception;

}
